<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.ostrich.system.bean.TostSysParaminfo"%>
<%@page import="com.ostrich.system.analysis.ParaminfoUtil"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <%@include file="/view/resource.jsp" %>
  </head>
  <body class="easyui-layout">
  	 <!-- Search panel start -->
 	 <div class="ui-search-panel" region="north" style="height: 80px;" title="过滤条件" data-options="striped: false,collapsible:false,iconCls:'icon-search',border:false" >   
 	 <form id="searchForm">
 	 	<input class="hidden" id='search_parentId' name="parentId">
 	 	<p class="ui-fields">
            <label class="ui-label">请输入岗位名称:</label>
            <input name="hpoName" class="easyui-box ui-text" style="width:100px;">
        </p>
        <a id="btn-search" class="easyui-linkbutton" iconCls="icon-search">查询</a>
      </form>
     </div>
     <!--  Search panel end -->
     <!-- DataList  -->
	 <div region="center" border="false" >
     	<table id="data-list" ></table>
     </div>
    
     <!-- Edit Win&From -->
     <div id="edit-win" class="easyui-dialog" title="Edit Menu" data-options="closed:true,iconCls:'icon-save',modal:true"  style="width:500px;height:450px;">
     	<form id="editForm" class="ui-form" method="post">
     	 <!-- 隐藏文本框 -->
     	 <input class="hidden" name="id">
     	 <input class="hidden" name="deleted">
    	 <input class="hidden" name="parentId" id='edit_parentId'>
    	 <div class="ui-edit"> 
	               <div class="ftitle">详细</div>    
		           <div class="fitem">  
		               <label>所属部门:</label>
		                <select class="easyui-combobox" id="hdpId" name="hdpId"  
                    			data-options="width:135"></select>
                    			
		           </div>
		           <div class="fitem">
		               <label>岗位名称:</label>
		               <input class="easyui-validatebox" type="text" name="hpoName" data-options="required:true">
		           </div>
		           <div class="fitem">
		               <label>岗位类型:</label>
		              <select name="hpoType" id="hpoType">
		                <% Map<Integer,TostSysParaminfo> hpoType = ParaminfoUtil.getParamByPid(20); 
		               for(Map.Entry<Integer,TostSysParaminfo> m:hpoType.entrySet()){
		               	%><option value="<%=m.getValue().getPaValue()%>"><%=m.getValue().getPaName() %></option><%} %>
		              </select>
		               <!-- <input class="easyui-validatebox" type="text" name="hpoType" data-options="required:true">-->
		           </div>
		           <div class="fitem">
		               <label>系数比例:</label>
		               <input class="easyui-validatebox" id="in_coefficient" onblur="ckfloat()" type="text" name="hpoScale" data-options="required:false">
		           </div>
		           <div class="fitem">
		               <label>岗位状态:</label>  
		                <select name="hpoStatus" id="hpoStatus">
		                <% Map<Integer,TostSysParaminfo> typeStatus = ParaminfoUtil.getParamByPid(30); 
		               for(Map.Entry<Integer,TostSysParaminfo> m:typeStatus.entrySet()){
		               	%><option value="<%=m.getValue().getId()%>"><%=m.getValue().getPaName() %></option><%} %>
		              </select>
		               <!-- <input class="easyui-validatebox" id="in_state" onblur="cknum_state()" type="text" name="hpoStatus" data-options="required:true"> -->
		           </div> 
	            </div>
     	</form>
  	 </div>
  <script type="text/javascript" src="<%=basePath%>/osjs/manpower/TostHrPostinfo.js"></script>
  </body>
</html>